﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Name : MonoBehaviour
{

    private InputField inputField;
    private void Start()
    {
        inputField = gameObject.GetComponent<InputField>();
        inputField.onEndEdit.AddListener(onEndEdit);
    }
    private void onEndEdit(string temp)
    {
        GlobalMessage.PlayerName = temp;
    }
}
